import { IForm } from '@/base-ui/form'

export const modalConfig: IForm = {
  formItems: [
    {
      field: 'name',
      type: 'input',
      label: 'User Name',
      placeholder: 'Please input user name'
    },
    {
      field: 'real_name',
      type: 'input',
      label: 'Real Name',
      placeholder: 'Please input real name'
    },
    {
      field: 'passwd',
      type: 'password',
      label: 'Password',
      placeholder: 'Please input password',
      isHidden: false
    },
    {
      field: 'cellphone',
      type: 'input',
      label: 'Cellphone',
      placeholder: 'Please input cellphone'
    },
    {
      field: 'enable',
      type: 'select',
      label: 'Status',
      placeholder: 'Please select status',
      options: [
        {
          value: true,
          title: 'enable'
        },
        {
          value: false,
          title: 'disable'
        }
      ]
    },
    {
      field: 'departmentId',
      type: 'select',
      label: 'Department',
      placeholder: 'Please select department',
      options: []
    },
    {
      field: 'roleId',
      type: 'select',
      label: 'Role',
      placeholder: 'Please select role',
      options: []
    }
  ],
  colLayout: { span: 24 },
  itemStyle: {}
}
